package com.toivan.mt.model;

import android.content.Context;
import android.graphics.drawable.Drawable;

import androidx.annotation.DrawableRes;

import com.toivan.mt.R;

public enum MtWatermark {
//    NO_WATERMARK("", 0, 0, 0, R.drawable.icon_none),
    WATERMARK1("watermark1", 5, 5, 20, R.drawable.watermark1),
    WATERMARK2("watermark2", 80, 5, 20, R.drawable.watermark2),
    WATERMARK3("watermark3", 5, 80, 20, R.drawable.watermark3),
    WATERMARK4("watermark4", 80, 80, 20, R.drawable.watermark4),
    WATERMARK5("watermark5", 5, 40, 20, R.drawable.watermark5),
    WATERMARK6("watermark6", 80, 40, 20, R.drawable.watermark6),
    WATERMARK7("watermark7", 5, 5, 20, R.drawable.watermark7);

    private String name;
    private int x;
    private int y;
    private int ratio;
    private int thumbId;

    MtWatermark(String name, int x, int y, int ratio, @DrawableRes int thumbId) {
        this.name = name;
        this.x = x;
        this.y = y;
        this.ratio = ratio;
        this.thumbId = thumbId;
    }

    public String getName() {
        return name;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public int getRatio() {
        return ratio;
    }

    public Drawable getThumbDrawable(Context context) {
        return context.getResources().getDrawable(thumbId);
    }
}
